package ne.aishuyuan.video.bean;

import lombok.Data;

/**
 * @ClassName: Media
 * @Description: 媒体信息
 * @Author: clj
 * @Date: 2021/11/2 16:09
 */
@Data
public class Media {
	private String id;
	private String title;
	/**
	 * 类型  PIC：图片  VIDEO：视频
	 */
	private String type;

	/**
	 * 播放类型，LOCAL_PLAY:点播本地播放，LIVE:在线，
	 * 冗余字段（接口没有这个字段）
	 */
	private String playType;
	/**
	 * 本地地址
	 */
	private String path;
	/**
	 * 网络地址
	 */
	private String url;
	/**
	 * 播放时长
	 */
	private Integer duration;

	public Media() {
		// TODO Auto-generated constructor stub
	}
	public Media(String path)
	{
		this.path = path;
	}
	public Media(String path,String url,Integer duration,String name) {
		this.path = path;
		this.url = url;
		this.duration = duration;
		this.title = name;
	}
}
